#include "ndame.h"
Go to the source code of this file.
Functions | |
void | clrbox (int ibox) |
clrbox |
Definition in file clrbox.c.
|
clrbox This function can delete the left or right part of the screen. The sub menu options() will appear on the left side and the chessboard will appear on the right side. After using clrbox will delete them from screen.
Definition at line 24 of file clrbox.c. Referenced by options(). 00025 { 00026 int ii; 00027 int ij; 00028 00029 00030 if(!ibox) //clear left box 00031 { 00032 for(ij=4;ij<=20;ij++) 00033 { 00034 for(ii=2;ii<=39;ii++) 00035 { 00036 gotoxy(ii,ij); 00037 printf(" "); 00038 } 00039 } 00040 } 00041 else //clear right box 00042 { 00043 for(ij=4;ij<=20;ij++) 00044 { 00045 for(ii=41;ii<=79;ii++) 00046 { 00047 gotoxy(ii,ij); 00048 printf(" "); 00049 } 00050 } 00051 } 00052 }
|